<template>
  <button @click="increment">
    count={{count}}
  </button>
</template>

<script lang="ts">
//选项卡(Options)的API
export default {
  name:"App",
  data(){
    return {
      count:0
    }
  },
  methods:{
    increment():void{
      this.count++;
    }
  },
  mounted():void{
    console.log(`应用初始化时count=${this.count}`);
  }
}
</script>

<style>

</style>
